package com.zbkj.crmeb.chant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.PageParamRequest;
import com.github.pagehelper.PageInfo;
import com.zbkj.crmeb.chant.model.ChannelProduct;
import com.zbkj.crmeb.chant.request.ChannelProductRequest;
import com.zbkj.crmeb.chant.request.ProductPushRequest;
import com.zbkj.crmeb.chant.vo.ChannelProductVo;
import java.util.List;

/**
 * 渠道商品
 */
public interface IChannelProductService extends IService<ChannelProduct> {

    /**
     * 渠道商品列表
     * @return
     */
    PageInfo<ChannelProductVo> productList(ChannelProductRequest reqParam, PageParamRequest pageParam);

    /**
     * 更新渠道商品
     * @return
     */
    boolean updateProduct(ChannelProduct entity);

    /**
     * 推送渠道商品
     * @return
     */
    boolean pushProduct(ProductPushRequest pushRequest);

    /**
     * 根据BarCode更新渠道商品 - 重置推送状态-未推送
     * @return
     */
    boolean updateProductByBarCode(String barCode);
}
